$(function(){
	$('.top .topLeft').on('vclick',function(){
		$('.top .topHidden').animate({left:'0px'},400);
		$("body,html").css({"overflow":"hidden"});
	});
	$('.top .topHidden').on('vclick',function(){
		$('.top .topHidden').animate({left:'-105vw'},100);
		$("body,html").css({"overflow":"auto"});
	});
	
	$('.top .topHidden .hidden').on('vclick',function(){
		return false;
	});
	$('.icon-angle-down').on('vclick',function(){
		
		if($('.nav .navHide').is(":hidden")){
			$('.nav .navHide').slideDown(200);
			$(this).css({transition:'.3s',transform:'rotate(180deg)'});
		}else{
			$('.nav .navHide').slideUp(200);
			$(this).css({transition:'.3s',transform:'rotate(0deg)'});
		}
		return false;
	});
	$('.nav .navHide').on('vclick',function(){
		return false;
	});
	$(document).on('vclick',function(){
		$('.nav .navHide').slideUp(200);
		$('.icon-angle-down').css({transition:'.3s',transform:'rotate(0deg)'});
	});
	
	
	TouchSlide({ 
					slideCell:"#focus",
					titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
					mainCell:".bd ul", 
					effect:"left", 
					autoPlay:true,//自动播放
					autoPage:true, //自动分页
					switchLoad:"_src" //切换加载，真实图片路径为"_src" 
	});
	
	
	var c=0;
	var le=$('.fastNew ul li').length;
	$('.fastNew ul li').eq(0).show();
	$('.fastNew ul li a i').eq(1).css({background:'red'});
	$('.fastNew ul li a i').eq(2).css({background:'#F0AD4E'});
	$('.fastNew ul li a i').eq(3).css({background:'#269ABC'});
	$('.fastNew ul li a i').eq(4).css({background:'#E54077'});
	t=setInterval(huan,3000);
	function huan(){
		c++;
		if(c>le-1){
			c=0
		}
		$('.fastNew ul li').eq(c).fadeIn(300).siblings().fadeOut(300);
	}
	
	
	
	
	
	
	
	
	
//	计算滚轮定位定位
	
	$(window).scroll(function(){
		if($(window).scrollTop()>100){
			$('.nav').css({position:'fixed',top:0,left:0,zIndex:8});
		}else{
			$('.nav').css({position:'relative',top:0,left:0,zIndex:8});
		}
	})
	
	
	
	
	
});
